package java;

public class CutCookie {
	public static int mdb(int n)
	{
	    int c;
	    if(n==0) c=1;
	    else c=mdb(n-1)+n;
	    return c;
	}
	public static void main(String args[])
	{
		System.out.print("切100刀后可最多可得：");
		mdb(100);
	}
}
